package com.itcast.ssm.service.impl;

import com.itcast.ssm.mapper.EvaluationMapper;
import com.itcast.ssm.response.OwnerEvaluation;
import com.itcast.ssm.service.EvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 房屋评价 服务实现类
 * </p>
 *
 * @author 三人行
 * @since 2020-09-12
 */
@Service
public class EvaluationServiceImpl implements EvaluationService {

    @Autowired
    EvaluationMapper evaluationMapper;

    @Override
    public List<OwnerEvaluation> findAll(Integer ownerId) {
        return evaluationMapper.findAll(ownerId);
    }

    @Override
    public Integer delete(Integer evaluateId) {
        return evaluationMapper.delete(evaluateId);
    }
}
